package com.qms.qep.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 设备校准记录对象 device_calibration
 * 
 * @author qep
 */
public class DeviceCalibration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long equipmentId;

    /** 校准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "校准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date calibrationDate;

    /** 校准机构 */
    @Excel(name = "校准机构")
    private String calibrationOrg;

    /** 校准证书编号 */
    @Excel(name = "校准证书编号")
    private String certificateNo;

    /** 校准结果 */
    @Excel(name = "校准结果")
    private String calibrationResult;

    /** 下次校准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次校准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextCalibration;

    /** 校准人员 */
    @Excel(name = "校准人员")
    private String calibrationPerson;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String attachmentUrl;

    /** 状态（1有效 0无效） */
    @Excel(name = "状态", readConverterExp = "1=有效,0=无效")
    private Integer status;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setCalibrationDate(Date calibrationDate) 
    {
        this.calibrationDate = calibrationDate;
    }

    public Date getCalibrationDate() 
    {
        return calibrationDate;
    }

    public void setCalibrationOrg(String calibrationOrg) 
    {
        this.calibrationOrg = calibrationOrg;
    }

    public String getCalibrationOrg() 
    {
        return calibrationOrg;
    }

    public void setCertificateNo(String certificateNo) 
    {
        this.certificateNo = certificateNo;
    }

    public String getCertificateNo() 
    {
        return certificateNo;
    }

    public void setCalibrationResult(String calibrationResult) 
    {
        this.calibrationResult = calibrationResult;
    }

    public String getCalibrationResult() 
    {
        return calibrationResult;
    }

    public void setNextCalibration(Date nextCalibration) 
    {
        this.nextCalibration = nextCalibration;
    }

    public Date getNextCalibration() 
    {
        return nextCalibration;
    }

    public void setCalibrationPerson(String calibrationPerson) 
    {
        this.calibrationPerson = calibrationPerson;
    }

    public String getCalibrationPerson() 
    {
        return calibrationPerson;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("calibrationDate", getCalibrationDate())
            .append("calibrationOrg", getCalibrationOrg())
            .append("certificateNo", getCertificateNo())
            .append("calibrationResult", getCalibrationResult())
            .append("nextCalibration", getNextCalibration())
            .append("calibrationPerson", getCalibrationPerson())
            .append("attachmentUrl", getAttachmentUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
} 